<!DOCTYPE html>
<html {{ with .Site.LanguageCode }}lang="{{ . }}"{{ end }}>
	<head>
		{{ .Hugo.Generator }}
		<!-- so meta -->
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="HandheldFriendly" content="True">
		<meta name="viewport" content="initial-scale=1,width=device-width,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
		<meta name="wap-font-scale" content="no">
		<meta name="360-site-verification" content="0903ba33c82867d1f7bd8831e32a7e34" />
		<meta name="sogou_site_verification" content="E8uWFBcf4a"/>
		{{ if .Site.Params.enableTwitterCard }} 
			{{ partial "twitter-cards.html" . }}
		{{ end }}
		
		{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
		<meta name='description' itemprop="description" content="{{if .IsPage}}{{substr .Summary 0 200}}{{ else }}{{ .Site.Params.Description }}{{ end }}">
		{{ if .Keywords }} 
		<meta name="keywords" content="{{ delimit .Keywords ", " }}" >
		{{else}}
		<meta name="keywords" content="{{ delimit .Site.Params.Keywords ", " }}" >
		{{ end }}
		<!-- Open Graph Protocol http://ogp.me/ -->
		<meta property="og:locale" content="en_US">
		<meta property="og:title" content="{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}">
		<meta property="og:image" content="{{ if .Params.image }}{{.Site.BaseURL}}/images/{{.Params.image}}{{ else }}{{.Site.BaseURL}}images/logo2.png{{ end }}">
		<meta property="og:description" content="{{if .IsPage}}{{substr .Summary 0 200}}{{ else }}{{ .Site.Params.Description }}{{ end }}">
		<meta property="og:site_name" content="{{ .Site.Title }}">

		<title>{{ if .IsHome }}Alili | 前端大爆炸! - WEB BANG! BANG!! BANG!!!{{ else }}{{ .Title }} | 前端大爆炸! - WEB BANG! BANG!! BANG!!!{{ end }}</title>
		<link rel="shortcut icon" href="{{ .Site.BaseURL }}images/favicon.ico">
		<!-- <link rel="stylesheet" type="text/css" href="https://c.mipcdn.com/static/v1/mip.css"> -->
		<link rel="manifest" href="/manifest.json">
		<link rel="stylesheet" href="{{ .Site.BaseURL }}lib/font-awesome/css/font-awesome.min.css">
		<!-- <link rel="stylesheet" href="{{ .Site.BaseURL }}lib/meslo-LG/styles.css"> -->
		<link rel="stylesheet" href="{{ .Site.BaseURL }}lib/justified-gallery/justifiedGallery.min.css">
		<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">

		{{ if .Site.Params.enableRSS }}
		<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
		{{ end }}

		{{ range .Site.Params.customCSS }}
		<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
		{{ end }}
		{{ if .IsPage }}
		<script src="{{ .Site.BaseURL }}lib/highlight.min.js"></script>
		<script>hljs.initHighlightingOnLoad();</script>
		{{ end }}
		<script src="{{ .Site.BaseURL }}lib/jquery/jquery.min.js"></script>
		<script>
			document.addEventListener("error", function (e) {
			  var elem = e.target;
			  if (elem.tagName.toLowerCase() == 'img') {
				elem.style.display='none'
			  }
			}, true);
			</script>
		<script type="application/ld+json">
			{
				"@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
				"@id": "{{.Permalink}}",
				"appid": "1613049289050283", 
				"title": "{{ if .IsHome }}Alili|前端大爆炸! - WEB BANG! BANG!! BANG!!!{{ else }}{{ .Title }} | 前端大爆炸! - WEB BANG! BANG!! BANG!!!{{ end }}", 
				"images": [],
				"pubDate": "{{ .Lastmod.Format "2006-01-02T15:04:05"}}"
			} 
			</script>
	</head>
